package cn.zjj.downgrade;

import cn.zjj.domain.User;
import org.springframework.web.bind.annotation.PathVariable;

public class FuseDowngradeUtil {

    public static User fallbackmethod(@PathVariable("id") Long id, Throwable e){
        e.printStackTrace();
        return  new User(-1L,"发生熔断","请检查服务器是否正常运行");
    }
}
